#ifdef MU_LICENSING
#ifndef LICENSEAGREEMENT_H
#define LICENSEAGREEMENT_H

#include <QDialog>
#include <QElapsedTimer>

class QScrollBar;

namespace Ui {
	class LicenseAgreement;
}

class LicenseAgreement : public QDialog
{
	Q_OBJECT

public:
	explicit				LicenseAgreement(QWidget *parent = 0);
							~LicenseAgreement();

	bool					getUserResponse();

private:
	Ui::LicenseAgreement*	ui;
	QScrollBar*				m_pScrollBar;
	QElapsedTimer			m_timer;
	QString					m_pressedKey;
	bool					m_userAgreed;

	void					keyPressEvent ( QKeyEvent * event );

private slots:
	void					on_agree_clicked();
	void					on_proceed_clicked();
	void					valueChanged(int);
};

#endif // LICENSEAGREEMENT_H
#endif // MU_LICENSING